/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package infoplaces2;

import java.awt.image.RenderedImage;
import java.awt.image.BufferedImage;

/**
 *
 * @author Andre Alvarado
 */
public class PlanarPanoramicView extends PlanarPanoramicImage {

    //    PlanarPanoramicView(image: RenderedImage)
    //    PlanarPanoramicView(source: PanoramicImage)
    //    fetch(x: double, y: double, z: double): RGBColor
    //    fetch(azimuth: double, zenith: double): RGBColor 
    
    public PlanarPanoramicView(RenderedImage image) {
        super(makeImageArray(image));
    }
    
    public PlanarPanoramicView(PanoramicImage source) {
        super(makeImageArray(source));
    }
    
    public PlanarPanoramicView(CubicPanoramicImage source) {
        super(makeImageArray(source));
    }
    
    private static RenderedImage[] makeImageArray(RenderedImage image) {
        RenderedImage[] result = {image};
        return result;
    }
    
    private static RenderedImage[] makeImageArray(PanoramicImage source) {
        BufferedImage image = null; //new BufferedImage(...);
        //TODO Calcular image a partir de source.
        
        return makeImageArray(image);
    }
    
    private static RenderedImage[] makeImageArray(CubicPanoramicImage source) {
        BufferedImage image = null; //new BufferedImage(...);
        //TODO Calcular image a partir de source.
        
        return makeImageArray(image);
    }
    
    // os fetchs vem pelo polimorfismo?
}
